package edu.sctu.java.advanced.pattern.proxy.lab01;

public class UserActionProxy implements IUserAction {
    private UserActionImpl userAction;

    public UserActionProxy(UserActionImpl userAction) {
        this.userAction = userAction;
    }

    @Override
    public void read() {

        System.out.println("Before read:");
        userAction.read();

    }

    @Override
    public void write() {

        System.out.println("Before write:");
        userAction.write();
    }
}
